public class OrderDecorator extends AbstractOrder {

	AbstractOrder abstractOrder;

	public OrderDecorator(AbstractOrder abstractOrder) {
		this.abstractOrder = abstractOrder;
	}

	@Override
	public void createOrder(int orderId, OrderCategory orderCategory,
			int accountId, int portfolioId) {
		abstractOrder.createOrder(orderId, orderCategory, accountId,
				portfolioId);
	}

	@Override
	public void display() {
		abstractOrder.display();
	}

	@Override
	public OrderState getOrderInitializedState() {
		return abstractOrder.getOrderInitializedState();
	}

	@Override
	public OrderState getOrderActiveState() {
		return abstractOrder.getOrderActiveState();
	}

	@Override
	public OrderState getOrderPartialState() {
		return abstractOrder.getOrderPartialState();
	}

	@Override
	public OrderState getOrderClosedState() {
		return abstractOrder.getOrderClosedState();
	}

	@Override
	public void setState(OrderState orderState) {
		abstractOrder.setState(orderState);
	}

	@Override
	public void initializeOrder() {
		abstractOrder.initializeOrder();
	}

	@Override
	public void activeOrder() {
		abstractOrder.activeOrder();
	}

	@Override
	public void partialOrder() {
		abstractOrder.partialOrder();

	}

	@Override
	public void closeOrder(boolean isOrderFulfilled) {
		abstractOrder.closeOrder(isOrderFulfilled);
	}

	@Override
	public void updateOrder(StockValueObserver buyer,
			StockValueObserver seller, int matchedQuantity) {
		abstractOrder.updateOrder(buyer, seller, matchedQuantity);

	}

	@Override
	public AbstractOrder newStockOrder(AbstractOrder newOrder) {

		return abstractOrder.newStockOrder(newOrder);
	}
}
